<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: /HElib/src/Test_approxNums.cpp File Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">Test_approxNums.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;NTL/ZZ.h&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;complex&gt;</code><br />
<code>#include &lt;<a class="el" href="norms_8h_source.html">helib/norms.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="helib_8h_source.html">helib/helib.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="debugging_8h_source.html">helib/debugging.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_arg_map_8h_source.html">helib/ArgMap.h</a>&gt;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a15190e777ec9a76c761e12b71dc1f1fc"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a15190e777ec9a76c761e12b71dc1f1fc">calcMaxDiff</a> (const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;v1, const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;v2)</td></tr>
<tr class="separator:a15190e777ec9a76c761e12b71dc1f1fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4129d18a5f4728dd3c9a01e312479623"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a4129d18a5f4728dd3c9a01e312479623">calcMaxRelDiff</a> (const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;v1, const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;v2)</td></tr>
<tr class="separator:a4129d18a5f4728dd3c9a01e312479623"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86c90cc12b407813a4bd2305bacb3df7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a86c90cc12b407813a4bd2305bacb3df7">cx_equals</a> (const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;v1, const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;v2, double epsilon)</td></tr>
<tr class="separator:a86c90cc12b407813a4bd2305bacb3df7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa38fae0337f3fbbf6301c9909e318d22"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#aa38fae0337f3fbbf6301c9909e318d22">testBasicArith</a> (const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;publicKey, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;secretKey, const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;ea, double epsilon)</td></tr>
<tr class="separator:aa38fae0337f3fbbf6301c9909e318d22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4636d6ee543e3c22af57e633a9bdbcf5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a4636d6ee543e3c22af57e633a9bdbcf5">testComplexArith</a> (const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;publicKey, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;secretKey, const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;ea, double epsilon)</td></tr>
<tr class="separator:a4636d6ee543e3c22af57e633a9bdbcf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7aedcd544d4d22533ea3955384ec1d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#aa7aedcd544d4d22533ea3955384ec1d0">testRotsNShifts</a> (const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;publicKey, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;secretKey, const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;ea, double epsilon)</td></tr>
<tr class="separator:aa7aedcd544d4d22533ea3955384ec1d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14b9b2fc71d4fb8edd74f140e15309e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a14b9b2fc71d4fb8edd74f140e15309e1">debugCompare</a> (const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;ea, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sk, vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;p, const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;c, double epsilon)</td></tr>
<tr class="separator:a14b9b2fc71d4fb8edd74f140e15309e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcc68bddc8cbfd8ba8a80d6fb97fc806"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#abcc68bddc8cbfd8ba8a80d6fb97fc806">negateVec</a> (vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;p1)</td></tr>
<tr class="separator:abcc68bddc8cbfd8ba8a80d6fb97fc806"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa3ab38e3e8f8bcece99703952e484bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#afa3ab38e3e8f8bcece99703952e484bb">add</a> (vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;to, const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;from)</td></tr>
<tr class="separator:afa3ab38e3e8f8bcece99703952e484bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00439d38105eda6b2cd584fcdd29b14e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a00439d38105eda6b2cd584fcdd29b14e">sub</a> (vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;to, const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;from)</td></tr>
<tr class="separator:a00439d38105eda6b2cd584fcdd29b14e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c879a58e37f4916377fdf42d812c9f3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a6c879a58e37f4916377fdf42d812c9f3">mul</a> (vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;to, const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;from)</td></tr>
<tr class="separator:a6c879a58e37f4916377fdf42d812c9f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2068619f1c777f9cdb790bd872293a9c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a2068619f1c777f9cdb790bd872293a9c">rotate</a> (vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;p, long amt)</td></tr>
<tr class="separator:a2068619f1c777f9cdb790bd872293a9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bd49d61de94cefa93445e19d5aa852b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a2bd49d61de94cefa93445e19d5aa852b">testGeneralOps</a> (const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;publicKey, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;secretKey, const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;ea, double epsilon, long nRounds)</td></tr>
<tr class="separator:a2bd49d61de94cefa93445e19d5aa852b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ab3f078684998b83967d507d0f453f454"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test__approx_nums_8cpp.html#ab3f078684998b83967d507d0f453f454">verbose</a> =false</td></tr>
<tr class="separator:ab3f078684998b83967d507d0f453f454"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="afa3ab38e3e8f8bcece99703952e484bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa3ab38e3e8f8bcece99703952e484bb">&#9670;&nbsp;</a></span>add()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void add </td>
          <td>(</td>
          <td class="paramtype">vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a15190e777ec9a76c761e12b71dc1f1fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15190e777ec9a76c761e12b71dc1f1fc">&#9670;&nbsp;</a></span>calcMaxDiff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double calcMaxDiff </td>
          <td>(</td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4129d18a5f4728dd3c9a01e312479623"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4129d18a5f4728dd3c9a01e312479623">&#9670;&nbsp;</a></span>calcMaxRelDiff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double calcMaxRelDiff </td>
          <td>(</td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a86c90cc12b407813a4bd2305bacb3df7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86c90cc12b407813a4bd2305bacb3df7">&#9670;&nbsp;</a></span>cx_equals()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool cx_equals </td>
          <td>(</td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>v2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>epsilon</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a14b9b2fc71d4fb8edd74f140e15309e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14b9b2fc71d4fb8edd74f140e15309e1">&#9670;&nbsp;</a></span>debugCompare()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void debugCompare </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;&#160;</td>
          <td class="paramname"><em>ea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sk</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>epsilon</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0ddf1224851353fc92bfbff6f499fa97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ddf1224851353fc92bfbff6f499fa97">&#9670;&nbsp;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a6c879a58e37f4916377fdf42d812c9f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c879a58e37f4916377fdf42d812c9f3">&#9670;&nbsp;</a></span>mul()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mul </td>
          <td>(</td>
          <td class="paramtype">vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abcc68bddc8cbfd8ba8a80d6fb97fc806"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcc68bddc8cbfd8ba8a80d6fb97fc806">&#9670;&nbsp;</a></span>negateVec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void negateVec </td>
          <td>(</td>
          <td class="paramtype">vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>p1</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2068619f1c777f9cdb790bd872293a9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2068619f1c777f9cdb790bd872293a9c">&#9670;&nbsp;</a></span>rotate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rotate </td>
          <td>(</td>
          <td class="paramtype">vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>amt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a00439d38105eda6b2cd584fcdd29b14e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00439d38105eda6b2cd584fcdd29b14e">&#9670;&nbsp;</a></span>sub()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void sub </td>
          <td>(</td>
          <td class="paramtype">vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const vector&lt; <a class="el" href="namespacehelib.html#a719cb433e43e9f4a88ada8b72d3b715d">cx_double</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>from</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa38fae0337f3fbbf6301c9909e318d22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa38fae0337f3fbbf6301c9909e318d22">&#9670;&nbsp;</a></span>testBasicArith()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void testBasicArith </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;&#160;</td>
          <td class="paramname"><em>publicKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>secretKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;&#160;</td>
          <td class="paramname"><em>ea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>epsilon</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4636d6ee543e3c22af57e633a9bdbcf5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4636d6ee543e3c22af57e633a9bdbcf5">&#9670;&nbsp;</a></span>testComplexArith()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void testComplexArith </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;&#160;</td>
          <td class="paramname"><em>publicKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>secretKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;&#160;</td>
          <td class="paramname"><em>ea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>epsilon</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2bd49d61de94cefa93445e19d5aa852b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bd49d61de94cefa93445e19d5aa852b">&#9670;&nbsp;</a></span>testGeneralOps()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void testGeneralOps </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;&#160;</td>
          <td class="paramname"><em>publicKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>secretKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;&#160;</td>
          <td class="paramname"><em>ea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>epsilon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nRounds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa7aedcd544d4d22533ea3955384ec1d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7aedcd544d4d22533ea3955384ec1d0">&#9670;&nbsp;</a></span>testRotsNShifts()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void testRotsNShifts </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;&#160;</td>
          <td class="paramname"><em>publicKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>secretKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;&#160;</td>
          <td class="paramname"><em>ea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>epsilon</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="ab3f078684998b83967d507d0f453f454"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3f078684998b83967d507d0f453f454">&#9670;&nbsp;</a></span>verbose</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool verbose =false</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
